#include <cmath>
#include <iostream>
#include "line.h"

using namespace std;

Line::Line() {}

Line::Line(double xv1, double yv1, double xv2, double yv2): start(xv1, yv1), end(xv2, yv2) {}

double Line::GetLength() const
{
	double dx, dy;
	dx = start.GetX() - end.GetX();
	dy = start.GetY() - end.GetY();
	return sqrt(dx * dx + dy * dy);
}

double Line::Area() const
{
	return 0;
}

void Line::Show() const
{
	cout << "start point: ";
	start.Show();
	cout << "end point: ";
	end.Show();
}
